home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 6623 / 6623.xpi / content / menu.xul < prev    next >
Extensible Markup Language  |  2009-11-28  |  2KB  |  65 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://bp/skin/BetterPrivacyButton.css" type="text/css"?>
  4. <!DOCTYPE overlay SYSTEM "chrome://bp/locale/bp.dtd">
  5.  
  6. <overlay id="BPOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onclose="alert(3);"> 
  7.  
  8.     <script type="application/x-javascript" src="chrome://bp/content/bp.js"/>
  9.  
  10.     <stringbundleset>
  11.         <stringbundle id="strBundle" src="chrome://bp/locale/bp.properties"/>
  12.     </stringbundleset>
  13.  
  14.     <!--SeaMonkey-->
  15.     <menupopup id="taskPopup">
  16.         <menuitem label="BetterPrivacy" insertafter="sanitizeItem" oncommand="bpriv.showBetterPrivacy();" />
  17.     </menupopup>
  18.  
  19.  
  20.     <menupopup id="menu_ToolsPopup">
  21.         <menuitem label="BetterPrivacy" insertafter="sanitizeItem" oncommand="bpriv.showBetterPrivacy();" />
  22.     </menupopup>
  23.  
  24.  
  25.     <keyset>
  26.         <key id="key_bp" disabled="true" oncommand="bpriv.onKeyCode();" />
  27.     </keyset>
  28.  
  29.  
  30.   <script type="application/x-javascript">
  31.  
  32.     window.addEventListener("load", function(event) {
  33.         event.currentTarget.removeEventListener("load", arguments.callee, true);
  34.         bpriv.firstload(event);
  35.     }, true);
  36.  
  37.     //both methods below activate while browser.xul is still open and visible (MAC computer bugfix)
  38.  
  39.     window.addEventListener("beforeunload", function(event) { //catches Firefox exit and restart
  40.         if(event.originalTarget.location == "chrome://browser/content/browser.xul"){
  41.             event.currentTarget.removeEventListener("beforeunload", arguments.callee, true);
  42.             bpriv.onexit(event); 
  43.         }
  44.     }, true);
  45.  
  46.     window.addEventListener("close", function(event) { //catches Firefox window close (x in upper right corner)
  47.         if(event.originalTarget.location == "chrome://browser/content/browser.xul"){
  48.             event.currentTarget.removeEventListener("close", arguments.callee, true);
  49.             bpriv.onexit(event); 
  50.         }
  51.     }, true);
  52.  
  53.   </script>
  54.  
  55.  
  56.  
  57.     <toolbarpalette id="BrowserToolbarPalette">
  58.       <toolbarbutton id="BetterPrivacyButton" class="toolbarbutton-1"
  59.         label=" Better Privacy" tooltiptext=" Better Privacy"
  60.         oncommand="bpriv.showBetterPrivacy();"/>
  61.     </toolbarpalette>
  62.  
  63.  
  64.  
  65. </overlay>